.es-main {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-width: 960px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;

  .es-left {
    flex-basis: 200px;

    .ant-menu {
      border: 1px solid #d9d9d9;
      border-radius: 3px;

      .ant-menu-item {
        padding-left: 10px;
        border-bottom: 1px solid #d9d9d9;
      }

      &:last-child {
        border-bottom: none;
      }
    }
  }

  .es-right {
    flex: 1;
    margin-left: 20px;
    // padding-bottom: 20px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    overflow: auto;

    .ant-col-24 {
      z-index: 1;
    }
  }

  .ant-select-selection__clear {
    right: 18px;
  }

  .ant-spin-nested-loading {
    height: calc(100% - 30px);
    min-height: 553px;
  }

  .rule-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }

  .loading {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .es-clerk {
    width: 100%;
    padding: 20px 40px 40px;
    font-size: 14px;

    .ant-row {
      margin-bottom: 20px;

      label {
        display: block;
        margin-bottom: 10px;
      }

      .ant-input-wrapper input {
        height: 34px;
      }
    }

    .clerk-btn {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .wea-input-locale-container {
      width: 96%;
    }

    .wea-helpful-tip {
      position: absolute;
      right: 0px;
      top: 35px;
    }

    .wea-tab {
      height: 46px;
      margin-bottom: 10px;
    }
  }

  .es-source {
    width: 100%;
    height: 100%;
    padding: 10px 0;
    padding-bottom: 5px;
    display: flex;
    overflow: hidden;
    flex-direction: column;

    .es-source-explain {
      margin-bottom: 15px;
      color: #aaa;
      padding: 0 20px;
    }

    .link-setting-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;

      .wea-table-editable {
        height: calc(~'100% - 30px');
        margin: 15px;
        border: 1px solid #e9e9e9;

        .center {
          text-align: center;
        }

        &>div:nth-child(2) {
          height: calc(~'100% - 45px');

          &>div {
            height: 100%;

            &>div {
              height: 100% !important;
              min-height: 100% !important;

              &>div {
                height: 100%;

                &>div {
                  height: 100%;

                  .ant-table-content,
                  .ant-table-scroll {
                    height: 100%;

                    &>span {
                      display: inline-block;
                      height: 100%;
                      width: 100%;

                      .ant-table-header {
                        margin-bottom: 0px !important;
                      }

                      .ant-table-header::-webkit-scrollbar {
                        width: 0px;
                        height: 0px;
                      }

                      .ant-table-body::-webkit-scrollbar {
                        width: 2px;
                      }

                      .ant-table-body {
                        max-height: calc(~'100% - 50px');
                      }
                    }
                  }
                }

                .ant-table-empty {
                  .ant-table-content {
                    height: auto;
                  }
                }
              }
            }
          }
        }

        .anticon-qrcode {
          font-size: 16px;
          cursor: pointer;
        }

        .operations {
          .ant-divider {
            height: 12px;
          }

          &>span {
            margin-right: 6px;

            &>i {
              color: #333;
              font-size: 15px;
              cursor: pointer;
            }

            &>i:hover {
              color: #2db7f5;
            }
          }

          &>span:last-child {
            margin-right: 0;
          }
        }
      }
    }

    .mr10 {
      margin-right: 10px;
    }

    .wea-field-readonly.border {
      cursor: default;
    }

    .link-setting {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding: 0 20px;

      .url {
        flex: 5;
      }

      .extend {
        flex: 1;
      }

      .language {
        .wea-select {
          width: 85px;
        }
      }

      .es-source-btn {
        flex: 0;
        margin-right: 10px;
      }

      .add-filed-value {
        margin-right: 10px;
        flex: 0;
      }
    }

    .new-link-list {
      flex: 1;
      overflow-y: auto;
      padding: 0 20px;
      padding-bottom: 20px;
    }

    .new-link-list .link-item {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      margin-top: 15px;

      .url {
        flex: 4;
        max-width: 400px;
        min-width: 350px;

        .wea-field-readonly span {
          white-space: nowrap !important;
          overflow: hidden;
          text-overflow: ellipsis;
          width: 100%;
        }
      }

      .extend {
        min-width: 75px;
        max-width: 95px;
        overflow: hidden;

        span {
          white-space: nowrap !important;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }

      .language {
        min-width: 75px;
        max-width: 85px;
        overflow: hidden;
      }
    }

    .link-icon {
      width: 16px;
      height: 16px;
      cursor: pointer;

      .anticon-delete {
        color: #2db7f5;
      }

      i {
        font-size: 16px;
      }
    }
  }
}

.wea-rule-info {
  width: 100%;
  height: 95%;

  .wea-edc-form-rule-wrapper,
  .ant-tabs-content,
  .ant-tabs,
  .ant-spin-container {
    height: 100%;
  }

  .wea-edc-form-rule-wrapper {
    padding-bottom: 0;
  }

  .wea-edc-rule-pane {
    position: absolute;
    top: 0;
    bottom: 40px;
    left: 0;
    right: 0;
    overflow: auto;
  }

  .wea-edc-rule-pane::-webkit-scrollbar {
    width: 4px;
  }
}

.wea-receipt {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 12px 5px;

  .ant-row {
    position: relative;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;

    textarea {
      resize: none;
      padding-right: 80px;
    }

    .title {
      position: relative;

      &>button {
        position: absolute;
        z-index: 10;
        top: 2px;
        right: 8px;
        padding: 2px 8px;
      }

      input {
        padding-right: 80px;
      }
    }

    .select-com {
      display: flex;
      margin-bottom: 5px;
      position: relative;

      &>button {
        position: absolute;
        z-index: 10;
        top: 6px;
        right: 8px;
        padding: 2px 8px;
      }
    }
  }
}

.relation-btn {
  text-align: center;
  margin-top: 20px;
}

.clerk-error {
  input {
    border-color: #FF2851;

    &:focus {
      border-color: #FF2851 !important;
      box-shadow: 0 0 0 2px rgba(255, 40, 81, 0.2);
    }
  }

  .error-msg {
    color: #FF2851;
    font-size: 12px;
  }
}

.wea-edc-insert {
  .ant-popover-inner-content {
    position: relative;
    padding: 38px 0 8px;
    border-radius: 4px;

    &>li {
      position: absolute;
      top: 8px;
      width: 100%;
      text-align: center;
      list-style: none;

      .wea-input-focus {
        height: 30px;
        width: 160px;
      }
    }

    .wea-edc-filed-title {
      max-height: 250px;
      overflow: auto;

      &>li {
        padding: 0 10px;
        line-height: 30px;
        list-style: none;
        cursor: pointer;

        &>span {
          margin-left: 5px;
          font-size: 10px;
          color: #999;
        }
      }

      &>li:hover {
        background-color: #eaf8fe;
      }
    }
  }
}

.wea-edc-setting-add-field-val {
  padding-top: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  &>.ant-row {
    padding: 0 20px;
    margin-bottom: 20px;
    min-height: 30px;
    line-height: 30px;
    display: flex;

    .wea-select {
      width: 100%;
    }

    .ant-col-3 {
      width: 60px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
  }

  .url {
    &>div {
      padding: 4px 8px;
      max-height: 100px;
      overflow: auto;

      span {
        width: 100%;
        line-height: 20px;
      }
    }
  }

  .wea-edc-fields {
    width: 100%;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    .wea-table-editable {
      height: 100%;
      padding: 0 10px 10px;

      .wea-edc-form-email .ant-input,
      .wea-edc-form-mobile .ant-input,
      .wea-edc-form-name .ant-input,
      .wea-edc-form-telephone .ant-input {
        padding-left: 24px !important;
      }

      .wea-table-editable-title {
        .wea-helpful-tip {
          margin-left: 10px;
        }
      }

      .wea-error .error-tip.tip-bottom {
        position: relative;
        top: 4px;
      }

      &>div:nth-child(2) {
        height: calc(~'100% - 45px');

        &>div {
          height: 100%;

          &>div {
            height: 100%;

            &>div {
              height: 100%;

              &>div {
                height: 100%;

                .ant-table-content,
                .ant-table-scroll {
                  height: 100%;

                  &>span {
                    display: inline-block;
                    height: 100%;
                    width: 100%;

                    .ant-table-header {
                      margin-bottom: 0px !important;
                    }

                    .ant-table-header::-webkit-scrollbar {
                      width: 0px;
                      height: 0px;
                    }

                    .ant-table-body::-webkit-scrollbar {
                      width: 5px;
                    }

                    .ant-table-body {
                      max-height: calc(~'100% - 50px');
                    }
                  }
                }
              }

              .ant-table-empty {
                .ant-table-content {
                  height: auto;
                }
              }
            }
          }
        }
      }

      .ant-table-tbody .wea-error>div {
        padding-bottom: 0px !important;
        width: 100%;

        &>span {
          width: 100%;
        }

        &>div {
          width: 100%;

          &>div {
            width: 100%;
          }
        }
      }

      .delete-data {
        display: inline-block;
        width: 16px;
        height: 16px;
        cursor: pointer;

        .anticon-delete {
          color: #2db7f5;
        }

        i {
          font-size: 16px;
        }
      }
    }
  }
}

.wea-edc-relation-tip {
  border: 1px solid #fec;
  background-color: #fff7e6;
  margin: 20px;
  padding: 5px;
  border-radius: 6px;

  i {
    color: #fa0;
    margin-right: 8px;
  }

  .wea-setting-to-relation-btn {
    color: #2db7f5;
    cursor: pointer;

    &:hover {
      opacity: 0.7;
    }
  }
}